export const MenuList = [
  {
    path: '/',
    name: 'Root',
    component: 'Layout',
    meta: {
      title: '首页',
      icon: 'home-2-line',
    },
    children: [
      {
        path: 'index',
        name: 'Index',
        component: '/@/views/index/index.vue',
        meta: {
          title: '首页',
          icon: 'home-2-line',
          noClosable: true,
          noKeepAlive: true,
        },
      },
      {
        path: 'setting',
        name: 'Setting',
        component: '/@/views/setting/personalCenter/index.vue',
        meta: {
          hidden: true, //是否显示在菜单中显示隐藏路由（默认值：false）
          title: '个人中心',
          icon: 'user-follow-line',
        },
      },
      {
        path: 'admin',
        name: 'Admin',
        component: '/@/views/permissions/admin.vue',
        meta: {
          title: 'admin菜单',
          icon: 'user-follow-line',
          // guard: ['Admin'],
        },
      },
      {
        path: 'editor',
        name: 'Editor',
        component: '/@/views/permissions/editor.vue',
        meta: {
          title: 'editor菜单',
          icon: 'user-follow-line',
          // guard: ['Editor'],
        },
      },
    ],
  },
  {
    path: '/setting',
    name: 'PersonnelManagement',
    component: 'Layout',
    meta: {
      title: '配置',
      icon: 'user-settings-line',
      guard: ['Admin'],
    },
    children: [
      {
        path: 'menuManagement',
        name: 'MenuManagement',
        component: '/@/views/setting/menuManagement/index.vue',
        meta: {
          title: '菜单管理',
          icon: 'menu-2-fill',
        },
      },
    ],
  },
]
